/**
 * 
 */
package web.common.entity;

import java.util.Date;

/**
 * 项目名称：ebs 
 * @ClassName: Test
 * @author ZK JIA<br>
 * 创建时间： 2013-11-6 下午10:00:49<br>
 * @version 1.1<br>
 * 描述: TODO(文章)<br>
 */

public class Article extends BaseEntity{
	
	
	
	
	
	
	/**
	
	* <p>Title: </p>
	
	* <p>Description: </p>
	
	* @param createTime
	* @param updateTime
	* @param createBy
	* @param textCode
	* @param userCode
	* @param name
	* @param title
	* @param type
	* @param content
	* @param user
	
	*/
	public Article(Date createTime, Date updateTime, String createBy,
			String textCode, String userCode, String name, String title,
			String type, String content, User user) {
		super(createTime, updateTime, createBy);
		this.textCode = textCode;
		this.userCode = userCode;
		this.name = name;
		this.title = title;
		this.type = type;
		this.content = content;
		this.user = user;
	}
	private String textCode;
	private String userCode;
	private String name;
	private String title;
	private String type;
	private String content;
	private User user;
	public String getTextCode() {
		return textCode;
	}
	public void setTextCode(String textCode) {
		this.textCode = textCode;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((textCode == null) ? 0 : textCode.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Article other = (Article) obj;
		if (textCode == null) {
			if (other.textCode != null)
				return false;
		} else if (!textCode.equals(other.textCode))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "Article [content=" + content + ", name=" + name + ", textCode="
				+ textCode + ", title=" + title + ", type=" + type + ", user="
				+ user + ", userCode=" + userCode + ", createBy=" + createBy
				+ ", createTime=" + createTime + ", updateTime=" + updateTime
				+ "]";
	};
	
	
	
	
	
	

}
